<template>
	<view class="container">
		<view class="top">
			<image class="order-img" src="/static/temp/icon_game.png" mode=""></image>
			<view class="order-name">
				云南甜玉米 水果玉米  云南甜玉米 水果玉米云南甜玉米 水果玉米  云南甜玉米 水果玉米云南甜玉米 水果玉米  云南甜玉米 水果玉米云南甜玉米 水果玉米  云南甜玉米 水果玉米
			</view>
			<view class="order-money">
				<view class="money"><text>￥</text>18</view>
				<view class="num">x1</view>
			</view>
		</view>
		<view class="form">
			<view class="form-item">
				<view class="form-item-name">服务类型</view>
				<view class="form-item-value">
					<label class="radio"><radio color="#FFBC21" value="r1" checked="true" />仅退款</label>
					<label class="radio"><radio color="#FFBC21" value="r1" />退货退款</label>
				</view>
			</view>
			<view class="form-item">
				<view class="form-item-name">货物状态</view>
				<view class="form-item-value">
					<label class="radio"><radio color="#FFBC21" value="r2" checked="true" />未收到货</label>
					<label class="radio"><radio color="#FFBC21" value="r2" />已收到货</label>
				</view>
			</view>
			<view class="form-item">
				<view class="form-item-name">退款原因</view>
				<view class="form-item-value">
					<input type="text">
				</view>
			</view>
			<view class="form-item">
				<view class="form-item-name">退款金额</view>
				<view class="form-item-value">
					<input type="number">
				</view>
			</view>
			<view class="form-item">
				<view class="form-item-name">退款说明</view>
				<view class="form-item-value">
					<input type="text">
				</view>
			</view>
		</view>
		<view class="submit" @click="submit">提交</view>
	</view>
</template>

<script>

	export default {
		data () {
			return {
				
			}
		},
		methods: {
			submit() {
				uni.navigateTo({
					url: "refund"
				})
			}
		}
	}
	
</script>

<style lang="scss">
	.top {
		display: flex;
		margin: 20upx 50upx;
		
		.order-img {
			width: 190upx;
			height: 190upx;
			border-radius: 10upx;
			background-color: #e5e5e5;
		}
		
		.order-name {
			flex: 1;
			height: 100upx;
			font-size: 28upx;
			line-height: 50upx;
			margin: 0 60upx 0 34upx;
			display: -webkit-box;
		    overflow : hidden;
		    -webkit-line-clamp: 2;
		    -webkit-box-orient: vertical;
		}
		
		.order-money {
			text-align: right;
			
			.money {
				font-size: 36upx;
				
				text {
					font-size: 24upx;
				}
			}
			
			.num {
				font-size: 28upx;
				color: #ABADAD;
			}
		}
	}
	
	.form {
		margin-top: 40upx;
		
		.form-item {
			line-height: 100upx;
			display: flex;
			padding: 0 50upx;
			border-bottom: 1upx solid #E4E7ED;
			font-size: 28upx;
			
			.form-item-name {
				width: 200upx;
			}
			
			.form-item-value {
				flex: 1;
				display: flex;
				align-items: center;
				color: #767777;
				
				.radio {
					margin-right: 40upx;
				}
				
				input {
					width: 100%;
				}
			}
		}
	}
	
	.submit {
		margin: 50upx;
		height: 90upx;
		text-align: center;
		line-height: 90upx;
		border-radius: 45upx;
		background-color: #FFBC21;
		font-size: 32upx;
	}
	
</style>
